function same0(str1,str2)
{  
    if(str1 == null || str2 == null)
	{
		return false;
	}

    var t1=str1.replace(/\s/gi, "");
	var t2=str2.replace(/\s/gi, "");

    if(t1.toLowerCase() == t2.toLowerCase())
	{
		return true;
	}
	else
	{return false;}
} 

function GetObj0(objName){
	if(document.getElementById)
	{return eval('document.getElementById("'+objName+'")')}
	else{return eval('document.all.'+objName)}
}  

function GetObj(objName){
	if(document.getElementById)
	{return eval('document.getElementById("'+objName+'")')}
	else{return eval('document.all.'+objName)}
}     

function onColor(td,n)
{
	td.style.backgroundImage= "url(http://www.cfrisk.org/skin/img/bk0.png)"; 
	td.style.cursor="pointer"; 
	//td.style.color="#16387C";
	//td.style.textDecoration="underline";
}

function offColor(td,n)
{
	td.style.backgroundImage= "url(http://www.cfrisk.org/skin/img/bk1.png)"; 
	td.style.cursor="default"; 
	//td.style.color="#FFF";
	//td.style.textDecoration="none";  
}

function checkKeywords(){
	if($("#SearchText").val().length==0){
		alert("请填写关键字");
		return false;	
	}else{
		$("#searchform").submit();
	}
}

//background:url(skin/images/bkb.png)
function openItem3(obj)
{
	obj.style.backgroundImage= "url(http://www.cfrisk.org/skin/images/bkb2.png)"; 
}

function closeItem3(obj)
{
    obj.style.backgroundImage= "none"; 
}

function goitem(url)
{
    window.location.href = url;
}